import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App);
import router from './router';
import ElementPlus from 'element-plus'
import './assets/css/index.css'
import './assets/css/login.css'
import './assets/css/animate.css'
import 'element-plus/dist/index.css'
import 'swiper/css';
import * as echarts from 'echarts'
// 文件分片组件
import uploader from 'vue-simple-uploader'
import 'vue-simple-uploader/dist/style.css';


import { Setting, Tickets, House, User, Message, PieChart, VideoCamera, ShoppingBag, Monitor } from "@element-plus/icons-vue"; //看自己需求取

// 视频播放组件
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css


app.use(vue3videoPlay);
app.config.globalProperties.$echarts = echarts
app.use(uploader)
app.component('SettingIcon', Setting);
app.component('TicketsIcon', Tickets);
app.component('HouseIcon', House);
app.component('UserIcon', User);
app.component('MessageIcon', Message);
app.component('PieChartIcon', PieChart);
app.component('VideoCameraIcon', VideoCamera);
app.component('ShoppingBagIcon', ShoppingBag);
app.component('MonitorIcon', Monitor);

app.use(router)
app.use(ElementPlus)
app.mount('#app')
